{extend name="layout" /}
{block name="title"}文字识别{/block}
{block name="content"}
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">文字识别</div>
                <div class="layui-card-body" pad15>
                        <div class="layui-form" wid100 lay-filter="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">平台</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="type" value="1" title="百度云" {eq name="value.type" value="1"}checked=""{/eq} lay-filter="type">
                                    <input type="radio" name="type" value="2" title="阿里云" {eq name="value.type" value="2"}checked=""{/eq} lay-filter="type">
                                    <input type="radio" name="type" value="3" title="腾讯云" {eq name="value.type" value="3"}checked=""{/eq} lay-filter="type">
                                </div>
                            </div>
                            <div class="layui-form-item type1">
                                <label class="layui-form-label">API Key</label>
                                <div class="layui-input-block">
                                    <input type="text" name="baidu[apiKey]" value="{$value.baidu.apiKey}"
                                           class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item type1">
                                <label class="layui-form-label">Secret Key</label>
                                <div class="layui-input-block">
                                    <input type="text" name="baidu[secretKey]" value="{$value.baidu.secretKey}"
                                           class="layui-input">
                                </div>
                            </div>

                            <div class="layui-form-item type2">
                                <label class="layui-form-label">App Code</label>
                                <div class="layui-input-block">
                                    <input type="text" name="ali[appCode]" value="{$value.ali.appCode}"
                                           class="layui-input">
                                </div>
                            </div>

                            <div class="layui-form-item type3">
                                <label class="layui-form-label">Secret Id</label>
                                <div class="layui-input-block">
                                    <input type="text" name="tencent[secretId]" value="{$value.tencent.secretId}"
                                           class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item type3">
                                <label class="layui-form-label">Secret Key</label>
                                <div class="layui-input-block">
                                    <input type="text" name="tencent[secretKey]" value="{$value.tencent.secretKey}"
                                           class="layui-input">
                                </div>
                            </div>

                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">通用文字识别</label>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="general_used" placeholder="0" autocomplete="off" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid">-</div>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="general_total" placeholder="500" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">身份证识别</label>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="id_card_used" placeholder="0" autocomplete="off" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid">-</div>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="id_card_total" placeholder="500" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">营业执照识别</label>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="business_license_used" placeholder="0" autocomplete="off" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid">-</div>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="business_license_total" placeholder="500" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <input type="hidden" name="id" value="{$key}">
                                    <button class="layui-btn" lay-submit lay-filter="set_system">确认保存</button>
                                </div>
                            </div>
                        </div>
                </div>
            </div>
        </div>
    </div>
</div>
<style>
    .type2, .type3{display: none}
</style>
{/block}
{block name="module"}'set'{/block}
